package com.ce.pms.house.model;

import javax.persistence.Column;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.ce.pms.common.model.SysInfo;
import com.sitechasia.webx.core.model.IDomainObject;

/**
 *
 * 逻辑、功能相关描述:房屋走表类型
 *
 * @author 于国岗 编写日期：2008-6-24
 */
@Entity
@Table(name="HM_METER_TYPE")
public class MeterType implements IDomainObject{
	@Id @GeneratedValue @Column(name="METER_TYPE_ID")
	private Long keyword;
	/**
	 * 走表名称
	 */
	@Column(name="NAME",length=80,nullable=false)
	private String name;
	/**
	 * 走表名称
	 */
	@Column(name="CODE",length=3,nullable=false)
	private String code;
	/**
	 * 系统信息
	 */
	@Embedded
	private SysInfo sysInfo;
	public MeterType(){}
	/**
	 *mini constructor
	 * @param name 走表名称
	 * @param code 走表名称
	 * @param sysInfo 系统信息
	 */
	public MeterType(String name, String code, SysInfo sysInfo) {
		super();
		this.name = name;
		this.code = code;
		this.sysInfo = sysInfo;
	}
	/*********************************************************
	 * Accessor and modifier
	 ********************************************************/
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public SysInfo getSysInfo() {
		return sysInfo;
	}
	public void setSysInfo(SysInfo sysInfo) {
		this.sysInfo = sysInfo;
	}
	public Long getKeyword() {
		return keyword;
	}
	public void setKeyword(Long keyword) {
		this.keyword = keyword;
	}


}
